home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
AppleEvents
/
Events
/
AEParameter.cp
< prev
next >
Wrap
Text File
|
2000-06-23
|
733b
|
37 lines
// AEParameter.cp
#ifndef AEParameter_h
#include "AEParameter.h"
#endif
#ifndef OSError_h
#include "OSError.h"
#endif
#ifndef ConstData_h
#include "ConstData.h"
#endif
#ifndef AEEvent_h
#include "AEEvent.h"
#endif
void AEParameter::Remove()
{
Assert( !Event().IsNull() );
ThrowOSError( AEDeleteParam( &Event(), Key().Key() ) );
}
void AEParameter::operator=( const AEDescriptor& in )
{
Assert( !Event().IsNull() );
ThrowOSError( AEPutParamDesc( &Event(), Key().Key(), &in ) );
}
void AEParameter::Set( AEType type, ConstData data )
{
Assert( !Event().IsNull() );
ThrowOSError( AEPutParamPtr( &Event(),
Key().Key(),
type.Type(),
data.Start(),
data.Length() ) );
}